.fs-accordion {
  box-shadow: 0 2px 6px 0 #999;
  margin: 8px;

  &--item {
    position: relative;

    .fs-accordion--splitter {
      width: 1px;
      height: 40px;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 30px;
    }

    &:first-child .fs-accordion--splitter {
      height: 28px;
      top: 12px;
    }

    &:last-child .fs-accordion--splitter {
      height: 28px;
      bottom: 12px;
    }

    .fs-accordion--splitter::before {
      content: '';
      position: absolute;
      top: 20px;
      bottom: 20px;
      height: 0px;
      width: 2px;
      background-color: #5e7ce0;
      border-radius: 5px;
      transition: all 0.1s ease-in-out;
    }

    &:first-child .fs-accordion--splitter:before {
      top: 6px;
    }

    &:last-child .fs-accordion--splitter:before {
      bottom: 0;
    }

    &.is-active {
      &>.fs-accordion--label {
        font-weight: bold;
      }

      .fs-accordion--splitter::before {
        top: 12px;
        bottom: 12px;
        height: 16px;
      }

      &:first-child .fs-accordion--splitter:before {
        top: 0;
      }

      &:last-child .fs-accordion--splitter:before {
        bottom: 0;
      }

    }

    &.is-open>.fs-accordion--label {
      font-weight: bold;

      .fs-accordion--open-icon {
        transform: rotate(180deg);
      }
    }

    &.is-open>.fs-accordion--items {
      max-height: 1000px;
      opacity: 1;
    }
  }

  &--items {
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease;
    opacity: 0;

    .fs-accordion--item {
      .fs-accordion--splitter {
        background-color: #eef0f2;
      }
    }
  }

  &--label {
    position: relative;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    padding-left: 20px;
    padding-right: 12px;

    &:hover {
      background-color: #f2f2f3;
    }

    .fs-accordion--open-icon {
      position: absolute;
      top: 0;
      right: 20px;
      transform: rotate(0deg);
      transition: all 0.1s ease-in-out;
      text-indent: initial;
    }
  }
}